package com.j2eefast.produce.pms.entity;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.j2eefast.common.core.base.entity.BaseEntity;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 签订合同
 * pms_contract
 * @author: summer
 * @date 2021-05-29 10:28
 */
@Data
@TableName("pms_contract")
public class PmsContractEntity extends BaseEntity{

    /** 主键 */
    @TableId(value = "id",type = IdType.INPUT)
    @ExcelIgnore
    private Long id;
    /** 金额 */
    @TableField(value = "amount")
    @ExcelProperty(value = "金额",index = 3)
    private BigDecimal amount;
    /** 甲方 */
    @TableField(value = "firsts")
    @ExcelProperty(value = "甲方",index = 1)
    private String firsts;

    /**乙方*/
    @TableField(value = "seconds")
    @ExcelProperty(value = "乙方",index = 2)
    private String seconds;
    /** 项目名称 */
    @TableField(value = "project_name")
    @ExcelProperty(value = "项目名称",index = 0)
    private String projectName;

    /** 签订地点 */
    @TableField(value = "sign_addr")
    @ExcelProperty(value = "签订地点",index = 4)
    private String signAddr;

    /** 合同链接 */
    @TableField(value = "contract_url")
    @ExcelProperty(value = "合同链接",index = 5)
    private String contractUrl;

    /** 项目地址 */
    @TableField(value = "project_addr")
    @ExcelProperty(value = "项目地址",index = 6)
    private String projectAddr;

    /** 签订时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss" , timezone = "GMT+8")
    @TableField(value = "sign_at")
    @ExcelProperty(value = "签订时间",index = 7)
    private Date signAt;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss" , timezone = "GMT+8")
    @TableField(value = "update_time")
    @ExcelProperty(value = "",index = 11)
    private Date updateTime;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss" , timezone = "GMT+8")
    @TableField(value = "create_time")
    @ExcelProperty(value = "创建时间",index = 9)
    private Date createTime;

    /** 创建人 */
    @TableField(value = "create_by")
    @ExcelProperty(value = "创建人",index = 8)
    private String createBy;

    /** 更新人 */
    @TableField(value = "update_by")
    @ExcelProperty(value = "更新人",index = 10)
    private String updateBy;

    /** 备注 */
    @TableField(value = "remark")
    @ExcelProperty(value = "备注",index = 12)
    private String remark;



}
